package com.x.erp.util;

public class ConstantState {

	/**
	 * 上架状态
	 */
	public final static int CAR_SALE_STATE_INITIAL = 0;// 未上架
	public final static int CAR_SALE_STATE_ONSALE_NG = 1;// 上架审核不通过
	public final static int CAR_SALE_STATE_ONSALE_ING = 10;// 上架中
	public final static int CAR_SALE_STATE_ONSALE_FINISH = 20;// 上架
	public final static int CAR_SALE_STATE_OFFSALE = 30;// 下架
	public static String getCarSaleStateMsg(int carSaleState){
		switch (carSaleState) {
		case CAR_SALE_STATE_INITIAL:
			return "未上架";
		case CAR_SALE_STATE_ONSALE_ING:
			return "申请上架";
		case CAR_SALE_STATE_ONSALE_FINISH:
			return "同意上架";
		case CAR_SALE_STATE_OFFSALE:
			return "下架";
		default:
			return "未知";
		}
	}

	/**
	 * 检测状态
	 */
	public final static int CAR_DETECT_STATE_INITIAL = 500;// 未初检
	public final static int CAR_DETECT_STATE_FIRST_NG = 510;// 初检不通过
	public final static int CAR_DETECT_STATE_FIRST_PASS = 520;// 初检通过
	public final static int CAR_DETECT_STATE_REDETECT_ING = 530;// 申请复检中
	public final static int CAR_DETECT_STATE_REDETECT_FINISH = 540;// 复检完成
	public static String getCarDetectStateMsg(int carDetectState){
		switch (carDetectState) {
		case CAR_DETECT_STATE_INITIAL:
			return "未初检";
		case CAR_DETECT_STATE_FIRST_NG:
			return "初检不通过";
		case CAR_DETECT_STATE_FIRST_PASS:
			return "初检通过";
		case CAR_DETECT_STATE_REDETECT_ING:
			return "申请复检";
		case CAR_DETECT_STATE_REDETECT_FINISH:
			return "复检完成";
		default:
			return "未知";
		}
	}
	/**
	 * 库存状态
	 */
	public final static int CAR_STOCK_STATE_INITIAL = 0;// 初始化
	public final static int CAR_STOCK_STATE_IN_NG = 1;// 入库审核不通过
	public final static int CAR_STOCK_STATE_IN_REVOCATION = 2;// 入库申请撤销
	public final static int CAR_STOCK_STATE_IN_ING = 10;// 入库中
	public final static int CAR_STOCK_STATE_IN_ING_ONSALE_ING = 11;// 入库中切上架申请
	public final static int CAR_STOCK_STATE_IN_FINISH = 20;// 入库
	public final static int CAR_STOCK_STATE_OUT_NG = 21;// 出库审核不通过
	public final static int CAR_STOCK_STATE_OUT_ING = 30;// 出库中
	public final static int CAR_STOCK_STATE_OUT_FINISH = 40;// 出库
	public static String getCarStockStateMsg(int carStockState){
		switch (carStockState) {
		case CAR_STOCK_STATE_INITIAL:
			return "初始化";
		case CAR_STOCK_STATE_IN_ING:
			return "申请入库";
		case CAR_STOCK_STATE_IN_ING_ONSALE_ING:
			return "申请入库切申请上架";
		case CAR_STOCK_STATE_IN_FINISH:
			return "同意入库";
		case CAR_STOCK_STATE_OUT_ING:
			return "申请出库";
		case CAR_STOCK_STATE_OUT_FINISH:
			return "同意出库";
		default:
			return "未知";
		}
	}

	/**
	 * 认证状态
	 */
	public final static int CAR_AUTH_STATE_INITIAL = 0;// 未认证
	public final static int CAR_AUTH_STATE_AUTHED = 10;// 已认证
	
	/**
	 * 绑定RFID状态
	 */
	public final static int CAR_RFID_STATE_INITIAL = 0;// 未绑定
	public final static int CAR_RFID_STATE_BINDED = 10;// 已绑定

	/**
	 * 检测单状态
	 */
	public final static int DETECTION_STATE_INITIAL = 0;// 发起
	public final static int DETECTION_STATE_SEND_ORDER = 10;// 已派单
	public final static int DETECTION_STATE_DETECTED = 20;// 已检测
	public final static int DETECTION_STATE_FINAL_CHECK = 30;// 总部审核

	/**
	 * 预订状态
	 */
	public final static int CAR_ORDER_STATE_INITIAL = 0;// 未预订
	public final static int CAR_ORDER_STATE_ORDERED = 1;// 已预订

	/**
	 * 抵押状态
	 */
	public final static int CAR_PLEDG_STATE_INITIAL = 300;// 未抵押
	public final static int CAR_PLEDG_STATE_PLEDGED = 310;// 已抵押

	/**
	 * 在场状态
	 */
	public final static int CAR_SITE_STATE_INITIAL = 400;// 未入场
	public final static int CAR_SITE_STATE_IN_FINISH = 410;// 已入场
	public final static int CAR_SITE_STATE_OUT_NG = 411;// 出场审核不通过
	public final static int CAR_SITE_STATE_OUT_ING = 420;// 出场审核中
	public final static int CAR_SITE_STATE_OUT_PASS = 430;// 出场审核通过
	public final static int CAR_SITE_STATE_OUT_FINISH = 440;// 已出场
	public static String getCarSiteStateMsg(int carSiteState){
		switch (carSiteState) {
		case CAR_SITE_STATE_INITIAL:
			return "未入场";
		case CAR_SITE_STATE_IN_FINISH:
			return "在场";
		case CAR_SITE_STATE_OUT_ING:
			return "申请临时出场";
		case CAR_SITE_STATE_OUT_PASS:
			return "同意临时出场";
		case CAR_SITE_STATE_OUT_FINISH:
			return "已出场";
		default:
			return "未知";
		}
	}

	/**
	 * 合同明细状态
	 */
	public final static int CONTRACT_REGION_STATE_0 = 0;// 无效
	public final static int CONTRACT_REGION_STATE_1 = 1;// 有效

	/**
	 * 延保商品订单状态（0待审核 10使用中 20已完成 30已失效）
	 */
	public final static int INSURANCE_ORDER_STATE_INITIAL = 0;// 待审核
	public final static int INSURANCE_ORDER_STATE_USING = 10;// 使用中
	public final static int INSURANCE_ORDER_STATE_FINISH = 20;// 已完成
	public final static int INSURANCE_ORDER_STATE_EXPIRED = 30;// 已失效（审核不通过）
	public final static int INSURANCE_ORDER_STATE_VERIFICATION = 40;// 获取使用中和已完成

	/**
	 * 延保商品使用券核销状态（0未核销 1已核销）
	 */
	public final static int INSURANCE_VERIFICATION_STATE_INITIAL = 0;// 未核销
	public final static int INSURANCE_VERIFICATION_STATE_VERIFICATED = 1;// 已核销
}
